module ApplicationHelper
  # Produce simple-icon tag.
  # Params:
  # <string> icon, is the icon type
  # <string> label, is the additional label for the icon
  def simple_icon(icon, *label)
    si = "<span class='simple-icon-#{icon}'></span>"
    si += " #{label.first}" unless label.empty?
    raw(si)
  end

  # Produce feather-icon tag.
  # Params:
  # <string> icon, is the icon type
  # <string> label, is the additional label for the icon
  def feather_icon(icon, *label)
    si = "<span class='feather-icon-#{icon}'></span>"
    si += " #{label.first}" unless label.empty?
    raw(si)
  end

  def active_controller(controller)
    "active" if controller_name == controller
  end
  
  
end
